<div class="row-fluid">
    <div class="box-bar-post border-last">
        <div class="bg-sitebar">
            <h1>
                <a href="<?php echo DOMAIN.$detail['Product']['link'];?>.html" title="<?php echo $detail['Product']['name'];?>">
                    <?php echo $detail['Product']['name'];?>
                </a>
            </h1>
        </div>
        <div class="thuoc-nghanh-nghe">
            <div class="thuoc-nghanh-nghe-left pull-left">
                <i class="fa fa-flag"></i><?php echo lang('noibatnhat');?>
            </div>
            <div class="thuoc-nghanh-nghe-right pull-right">
                &nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang('thuocnghanhnghe');?>: <?php if(!empty($detail['Catproduct']['name'.LANGUAGE]))echo $detail['Catproduct']['name'.LANGUAGE];?>
            </div>
        </div><!--end thuoc-nghanh-nghe-->
        <div class="clear-content"></div>
        <div class="row-fluid">
            <div class="box-new-list-content">
                <a href="<?php echo DOMAIN.$detail['Product']['link'];?>.html" title="<?php echo $detail['Product']['name'];?>">
                    <img src="<?php echo DOMAIN;?>img/w250/<?php echo $detail['Product']['images'];?>" class="span4 imgf" title="<?php echo $detail['Product']['name'];?>" alt="<?php echo $detail['Product']['name'];?>"/>
                </a>
                
                <a href="<?php echo DOMAIN.$detail['Product']['link'];?>.html" title="<?php echo $detail['Product']['name'];?>">
                    <h3><?php echo shortDesc($detail['Product']['name'], 250);?></h3>
                </a>
                <div class="user-post-date">
                    <?php if(!empty($detail['Product']['user_id'])){?>
                        <a href="#" type="User post">Admin</a> | Date
                    <?php }else{?>
                        <a href="<?php echo DOMAIN;?>profile" type="User post">Admin</a> | Date
                    <?php }?> 
                    <?php echo date('d-m-Y', strtotime($detail['Product']['modified'])); ?>
                </div><!--end user-post-date-->
                <div class="view-cmt-like">
                    <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo DOMAIN.$detail['Product']['link'];?>.html&amp;layout=button&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp" style="overflow:hidden;width:100%;height:80px;" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
                    <button class="btn btn-mini btn-primary" type="button">Theo dõi</button>
                    <img src="<?php echo DOMAIN;?>images/icon-view.png"/> <?php echo $detail['Product']['view'];?>&nbsp;&nbsp;
                    <img src="<?php echo DOMAIN;?>images/icon-cmt.png"/> <?php echo $detail['Product']['cmt'];?>&nbsp;&nbsp;
                    <img src="<?php echo DOMAIN;?>images/icon-like.png"/> <?php echo $detail['Product']['like'];?>
                </div><!--end view-cmt-like-->
                <div class="shortdes_detail">
                    <?php echo shortDesc($detail['Product']['shortdes'], 800);?>
                </div><!--end shortdes_detail-->
                <div class="clear-content"></div>
                <div class="box-tin-lien-quan-one">
                    <?php if(!empty($tinlienquan[0]['Product']['name'])){?>
                        <div class="title-tin-lien-quan-one">
                            <i class="fa fa-level-up fa-rotate-90 pull-left"></i> <h3><a href="<?php echo DOMAIN.$tinlienquan[0]['Product']['link'];?>.html" title="<?php echo $tinlienquan[0]['Product']['name'];?>"><?php echo $tinlienquan[0]['Product']['name'];?></a></h3>
                        </div>
                    <?php }?>
                    <?php if(!empty($tinlienquan[1]['Product']['name'])){?>
                        <div class="title-tin-lien-quan-one">
                            <i class="fa fa-level-up fa-rotate-90 pull-left"></i> <h3><a href="<?php echo DOMAIN.$tinlienquan[1]['Product']['link'];?>.html" title="<?php echo $tinlienquan[1]['Product']['name'];?>"><?php echo $tinlienquan[1]['Product']['name'];?></a></h3>
                        </div>
                    <?php }?>
                </div><!--end box-tin-lien-quan-one-->
                <div class="clear-main"></div>
                <div class="ct_tt"><?php echo $detail['Product']['content'];?></div><!--end ct_tt-->
                <div class="clear-main"></div>
                <div class="keyword-content">Từ khóa: </div><!--end keyword-content-->
                <div class="share-post">
                    <div class="row-fluid">
                        <div class="span3">Chia sẻ:</div>
                        <div class="span9 text-right">
                            <a href="https://api.addthis.com/oexchange/0.8/forward/facebook/offer?pco=tbxnj-1.0&url=<?php echo DOMAIN.$detail['Product']['link'];?>.html&pubid=ra-53aa7ff21900e7b5&ct=1" target="_blank"><img src="<?php echo DOMAIN;?>images/face.png" title="" alt=""/></a>
                            <a href="https://api.addthis.com/oexchange/0.8/forward/twitter/offer?pco=tbxnj-1.0&url=<?php echo DOMAIN.$detail['Product']['link'];?>.html&pubid=ra-53aa7ff21900e7b5&ct=1" target="_blank"><img src="<?php echo DOMAIN;?>images/tw.png" title="" alt=""/></a>
                            <a href="https://api.addthis.com/oexchange/0.8/forward/linkedin/offer?pco=tbxnj-1.0&url=<?php echo DOMAIN.$detail['Product']['link'];?>.html&pubid=ra-53aa7ff21900e7b5&ct=1" target="_blank"><img src="<?php echo DOMAIN;?>images/in.png" title="" alt=""/></a>
                            <a href="https://api.addthis.com/oexchange/0.8/forward/tumblr/offer?pco=tbxnj-1.0&url=<?php echo DOMAIN.$detail['Product']['link'];?>.html&pubid=ra-53aa7ff21900e7b5&ct=1" target="_blank"><img src="<?php echo DOMAIN;?>images/t.png" title="" alt=""/></a>
                            <a href="https://api.addthis.com/oexchange/0.8/forward/pinterest_share/offer?pco=tbxnj-1.0&url=<?php echo DOMAIN.$detail['Product']['link'];?>.html&pubid=ra-53aa7ff21900e7b5&ct=1" target="_blank"><img src="<?php echo DOMAIN;?>images/p.png" title="" alt=""/></a>
                            <a href="https://api.addthis.com/oexchange/0.8/forward/google_plusone_share/offer?pco=tbxnj-1.0&url=<?php echo DOMAIN.$detail['Product']['link'];?>.html&pubid=ra-53aa7ff21900e7b5&ct=1" target="_blank"><img src="<?php echo DOMAIN;?>images/gc.png" title="" alt=""/></a>
                            <a href="https://api.addthis.com/oexchange/0.8/forward/gmail/offer?pco=tbxnj-1.0&url=<?php echo DOMAIN.$detail['Product']['link'];?>.html&pubid=ra-53aa7ff21900e7b5&ct=1" target="_blank"><img src="<?php echo DOMAIN;?>images/email.png" title="" alt=""/></a>
                        </div>
                    </div>
                </div><!--end share-post-->
                <div class="box-tin-lien-quan-two">
                    <div class="title-tin-lien-quan-two"><?php echo $titleDefinitions['tinlienquan'];?></div>
                    <table style="width: 100%;">
                        <tr>
                            <?php if(!empty($tinlienquan[2]['Product']['name'])){?>
                                <td valign="top" align="left" style="width: 50%;">
                                    <div class="box-new-tin-lien-quan">
                                        <a href="<?php echo DOMAIN.$tinlienquan[2]['Product']['link'];?>.html" title="<?php echo $tinlienquan[2]['Product']['name'];?>">
                                            <img src="<?php echo DOMAIN;?>img/w120/h90/<?php echo $tinlienquan[2]['Product']['images'];?>" class="span4" title="<?php echo $tinlienquan[2]['Product']['name'];?>" alt="<?php echo $tinlienquan[2]['Product']['name'];?>"/>
                                        </a>
                                        <h3>
                                            <a href="<?php echo DOMAIN.$tinlienquan[2]['Product']['link'];?>.html" title="<?php echo $tinlienquan[2]['Product']['name'];?>">
                                                <?php echo shortDesc($tinlienquan[2]['Product']['name'], 50);?>
                                            </a>
                                            <span>Date <?php echo date('d-m-Y', strtotime($tinlienquan[2]['Product']['modified'])); ?></span>
                                        </h3>
                                        <div class="shortdes_detail"><?php echo shortDesc($tinlienquan[2]['Product']['shortdes'], 58);?></div>
                                        <div class="clear-main"></div>
                                    </div><!--end box-new-tin-lien-quan-->
                                </td>
                            <?php }?>
                            <?php if(!empty($tinlienquan[3]['Product']['name'])){?>
                                <td valign="top" align="left" style="width: 50%;">
                                    <div class="box-new-tin-lien-quan">
                                        <a href="<?php echo DOMAIN.$tinlienquan[3]['Product']['link'];?>.html" title="<?php echo $tinlienquan[3]['Product']['name'];?>">
                                            <img src="<?php echo DOMAIN;?>img/w120/h90/<?php echo $tinlienquan[3]['Product']['images'];?>" class="span4" title="<?php echo $tinlienquan[3]['Product']['name'];?>" alt="<?php echo $tinlienquan[3]['Product']['name'];?>"/>
                                        </a>
                                        <h3>
                                            <a href="<?php echo DOMAIN.$tinlienquan[3]['Product']['link'];?>.html" title="<?php echo $tinlienquan[3]['Product']['name'];?>">
                                                <?php echo shortDesc($tinlienquan[3]['Product']['name'], 50);?>
                                            </a>
                                            <span>Date <?php echo date('d-m-Y', strtotime($tinlienquan[3]['Product']['modified'])); ?></span>
                                        </h3>
                                        <div class="shortdes_detail"><?php echo shortDesc($tinlienquan[3]['Product']['shortdes'], 58);?></div>
                                        <div class="clear-main"></div>
                                    </div><!--end box-new-tin-lien-quan-->
                                </td>
                            <?php }?>
                        </tr>
                    </table>
                </div><!--end box-tin-lien-quan-two-->
                <?php echo $this->element('comment');?>
            </div><!--end box-new-list-content-->
        </div>
        <div class="clear-content"></div>
    </div><!--end box-bar-post-->
</div>